import { makeAutoObservable } from "mobx"
import {selectClassPlanByStu} from "@/services/index"
import {IselectClassPlanByStu} from "@/utils/interface"

class myProject{
    constructor(){
        makeAutoObservable(this)
    }
    selectClassPlanByStuItem:IselectClassPlanByStu[] = []
    async selectClassPlanByStu(){
        let result = await selectClassPlanByStu()
        if( result.rows ){
            this.selectClassPlanByStuItem = result.rows
            console.log(result.rows)
        }
    }
}

export default new myProject()